package com.jeeinc.oa.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "oa_banner")
public class Banner {
	private Integer id;
	private Integer link_type;
	private Integer open_type;
	private String link_url;
	private String link_tips;
	private String memo;
	private Portlet portlet;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getLink_type() {
		return link_type;
	}

	public void setLink_type(Integer link_type) {
		this.link_type = link_type;
	}

	public Integer getOpen_type() {
		return open_type;
	}

	public void setOpen_type(Integer open_type) {
		this.open_type = open_type;
	}

	public String getLink_url() {
		return link_url;
	}

	public void setLink_url(String link_url) {
		this.link_url = link_url;
	}

	public String getLink_tips() {
		return link_tips;
	}

	public void setLink_tips(String link_tips) {
		this.link_tips = link_tips;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@ManyToOne
	@JoinColumn(name = "portlet_id")
	public Portlet getPortlet() {
		return portlet;
	}

	public void setPortlet(Portlet portlet) {
		this.portlet = portlet;
	}

}
